package io;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

public class FISDemo {
    public static void main(String[] args) throws IOException {
        FileInputStream fis = new FileInputStream("FOS.dat");
        int read = fis.read();
        System.out.println(read);
        int read1 = fis.read();
        System.out.println(read1);
        int read2 = fis.read();// 如果返回值为-1，则表示流读到了末尾，其中-1 为负数整数的最大值。
        System.out.println(read2);
        fis.close();

    }
}
